/**
 * 
 */
package com.thor.palmmall.rest.servicebill;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.commons.entity.BeanOperateInfo;
import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.query.QueryResult;
import com.thor.palmmall.rest.common.AUserGroupLoadParam;

/**
 * @author NuoSa
 *
 * @since 1.0
 */
@Path("/servicebill")
@Produces(MediaType.APPLICATION_JSON + "; charset=utf-8")
@Consumes(MediaType.APPLICATION_JSON + "; charset=utf-8")
public interface AServiceBillService {

  @POST
  @Path("/create")
  String create(AServiceBill ServiceBill, @QueryParam("") BeanOperateInfo operateInfo)
      throws ThorServiceException;

  @POST
  @Path(value = "/save")
  String save(AServiceBill ServiceBill, @QueryParam("") BeanOperateInfo operateInfo)
      throws ThorServiceException;

  @POST
  @Path(value = "/{id}")
  AServiceBill get(@PathParam("id") String id, AUserGroupLoadParam param)
      throws ThorServiceException;

  @POST
  @Path(value = "/finish")
  String finish(AServiceBillFinishParam param) throws ThorServiceException;;
  
  @POST
  @Path(value = "/query")
  QueryResult<AServiceBill> query(AServiceBillQueryParam param) throws ThorServiceException;

  @GET
  @Path(value = "/queryOutgoingState")
  String[] queryOutgoingState() throws ThorServiceException;

  @GET
  @Path(value = "/typeTag")
  List<String> typeTag(@QueryParam("category") String category,
      @QueryParam("subType") String subType) throws ThorServiceException;

}
